using AutoMapper;
using Blog.Repository;
using Blog.Service.User.Output;
using XjjXmm.Infrastructure.Repository.Model;

namespace Blog.Service.User;


/// <summary>
/// 映射配置
/// </summary>
public class UserMapperConfig : Profile
{
    public UserMapperConfig()
    {
        CreateMap<UserModel, UserEntity>();
        CreateMap<UserEntity, UserModel>();

        CreateMap<UserEntity, UserListOutput>();
        CreateMap<PageOutput<UserEntity>, PageOutput<UserListOutput>>();
    }
}